package com.bosssoft.bean;

import javax.management.relation.Role;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author guozhi
 * @version 1.0.0
 * @date 2022-06-05 14:42
 * @class UserBean
 * @description
 */
public class UserBean {
    private Integer id;

    private String username;

    private String password;

    private Double account;

    private List<Role> roles;

    public UserBean() {
    }

    public UserBean(Integer id, String username, String password, Double account) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.account = account;
    }

    public UserBean(String username, String password, Double account) {
        this.username = username;
        this.password = password;
        this.account = account;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getAccount() {
        return account;
    }

    public void setAccount(Double account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", account=" + account +
                ", roles=" + roles +
                '}';
    }
}
